Disable font fallback in the fontchooser preview
authorChristian Persch <chpe@gnome.org>
Thu, 22 Sep 2011 22:32:44 +0000 (00:32 +0200)
committerChristian Persch <chpe@gnome.org>
Thu, 22 Sep 2011 22:32:44 +0000 (00:32 +0200)
The preview is should show the selected font, not whatever
font contains glyphs for the preview text.

gtk/gtkfontchooserwidget.c

index e3cac95eb226b43b4b0e772d90422de336b5f2aa..9a3f37cb1216152db421cede1365e556b437544c 100644 (file)
@@ -834,6 +834,10 @@ gtk_font_chooser_widget_get_preview_attributes (GtkFontChooserWidget       *font
       pango_attr_list_insert (attrs, attribute);
     }
 
+  attribute = pango_attr_fallback_new (FALSE);
+  attribute->start_index = first_line_len;
+  pango_attr_list_insert (attrs, attribute);
+
   attribute = pango_attr_size_new_absolute (gtk_font_chooser_widget_get_preview_text_height (fontchooser));
   attribute->start_index = first_line_len;
   pango_attr_list_insert (attrs, attribute);